/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 4; tab-width: 4 -*- */
/*
 * leafget
 * Copyright (C) xinliGG 2008 <xinliGG@gmail.com>
 * 
 * leafget is free software: you can redistribute it and/or modify it
 * under the terms of the GNU General Public License as published by the
 * Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * leafget is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 * See the GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License along
 * with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

#ifndef _MSG_H_
#define _MSG_H_

#include <gtkmm/box.h>
#include <gtkmm/dialog.h>
#include <gtkmm/label.h>
#include <gtkmm/window.h>

#include <string>

class Msg: public Gtk::Dialog 
{
public:

	Msg ( Gtk::Window &, const std::string &, const std::string &, const bool & );

		/* run function */

	const int run_msg ( void );
	
private:

		/* timer event */

	bool on_run_timer ( void );

		/* data */

	int  awser;
	bool timer_on;

	sigc::connection run_timer;

		/* widgets */

	Gtk::VBox  *boxMSG;
	
	Gtk::Label  LabelMSG;
};

#endif // _MSG_H_
